/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'
// promotion
const promotionRouter = {
  path: '/promotion',
  component: Layout,
  hidden:false,
  redirect: 'noRedirect',
  name: '促销',
  meta: {
    title: '促销',
    icon: 'international'
  },
  children: [
    {
      path: 'workbrench',
      component: () => import('@/views/customer/workbrench/workbrench'),
      name: '总览',
      meta: { title: '总览' }
    },
    {
      path: 'flexible',
      component: () => import('@/views/promotion/index'),
      name: '活动',
      meta: { title: '活动' },
      children:[
        {
          path: 'giftbag',
          component: () => import('@/views/promotion/giftbag/giftbag'),
          name: '大礼包',
          meta: { title: '大礼包' }
        },
        {
          path: 'oldwithnew',
          component: () => import('@/views/promotion/oldwithnew/oldwithnew'),
          name: '老带新',
          meta: { title: '老带新' }
        },
        {
          path: 'lucky',
          component: () => import('@/views/promotion/lucky/lucky'),
          name: '手气不错',
          meta: { title: '手气不错' }
        },

      ]
    },
    {
      path: 'flash-sale',
      component: () => import('@/views/promotion/flashsale/flashsale'),
      name: '秒杀',
      meta: { title: '秒杀' }
    },
    {
      path: 'flash-sale-add',
      component: () => import('@/views/promotion/flashsale/flashsale-add'),
      hidden:true,
      name: '新秒杀',
      meta: { title: '新秒杀' }
    },
    {
      path: 'group-buy',
      component: () => import('@/views/promotion/groupbuy/groupbuy'),
      name: '团购',
      meta: { title: '团购' }
    },
    {
      path: 'group-buy-add',
      component: () => import('@/views/promotion/groupbuy/groupbuy-add'),
      hidden:true,
      name: '新团购',
      meta: { title: '新团购' }
    },
    {
      path: 'coupon',
      component: () => import('@/views/promotion/coupon/coupon'),
      name: '优惠卷',
      meta: { title: '优惠卷' }
    },
    {
      path: 'coupon-add',
      component: () => import('@/views/promotion/coupon/coupon-add'),
      hidden:true,
      name: '新优惠卷',
      meta: { title: '新优惠卷' }
    },
    {
      path: 'keyword',
      component: () => import('@/views/promotion/coupon/coupon'),
      name: '关键字',
      meta: { title: '关键字' }
    },
    {
      path: 'keyword-add',
      component: () => import('@/views/promotion/coupon/coupon-add'),
      hidden:true,
      name: '新关键字',
      meta: { title: '新关键字' }
    },
    {
      path: 'group',
      component: () => import('@/views/promotion/coupon/coupon'),
      name: '用户组',
      meta: { title: '用户组' }
    },
    {
      path: 'group-add',
      component: () => import('@/views/promotion/coupon/coupon-add'),
      hidden:true,
      name: '新用户组',
      meta: { title: '新用户组' }
    }
  ]
}

export default promotionRouter
